"""
URL configuration for the courses application.

Defines the URL patterns for the courses app.
"""

from django.urls import path
from. import views

urlpatterns = [
    path('', views.course_list, name='course_list'),  # 课程列表页面路由
    path('<int:course_id>/', views.course_detail, name='course_detail'),  # 课程详情页面路由，<int:course_id> 用于捕获课程 ID 作为参数传递给视图函数
    path('<int:course_id>/favorite/', views.favorite_course, name='favorite_course'),  # 课程收藏路由
]